package cn.com.smart.module.tool.database.service.serviceImpl;

import cn.com.smart.module.tool.database.domain.columns;
import cn.com.smart.module.tool.database.service.columnservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ColumnserviceImpl implements columnservice {

    @Autowired
    private cn.com.smart.module.tool.database.mapper.columnsMapper columnsMapper;

    /**
     * 根据数据库名，表名，查询表字段
     * @param tableName
     * @return
     */
    @Override
    public List<columns> selectColumnsByTableName(String tableName) {

        return columnsMapper.selectColumnsByTableName(columnsMapper.dbName(),tableName);
    }


}
